package com.learn.injection;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @author chenxin
 * @time 2016-11-13-13:13
 */
@ContextConfiguration(locations = {
        "classpath:applicationContext.xml",
})
@RunWith(SpringJUnit4ClassRunner.class)
public class InjectionTest{

    @Resource
    private ServiceFoo serviceFoo;

    @Test
    public void testInject(){
        serviceFoo.testCallBar();
    }
}
